package org.example.j2024_11_28.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.j2024_11_28.model.StudentInfo;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface StudentMapper {

    @Select("select * from student")
     List<StudentInfo> queryStudents();
    @Select("select * from student where id= #{id}")
     List<StudentInfo> queryStudentForId(@Param("id") Integer studentId);
}
